﻿using System;
using System.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Windows.PdfViewer;

namespace PdfSdk.PdfViewer
{
    public class PdfViewerShapeAnnotationWrapper : AnnotationWrapper
    {
        public PdfViewerShapeAnnotationWrapper(object obj) : base(obj)
        {
        }

        internal DocumentViewWrapper.PdfViewerShape AnnotationShape => (DocumentViewWrapper.PdfViewerShape)Convert.ToInt32(GetPropertyValue());

        public PdfLayer Layer => GetPropertyValue() as PdfLayer;

        public PointF StartingPoint => (PointF)GetPropertyValue();

        public PointF EndPoint => (PointF)GetPropertyValue();

        public ShapeAnnotationSettings Settings => GetPropertyValue() as ShapeAnnotationSettings;
    }
}
